﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hook.Graphics;
using Microsoft.Xna.Framework;

namespace Hook.Environmental.Effects
{
    class PlayerParticleEffect : GameEffect
    {
        public PlayerParticleEffect(Vector3 Position)
            : base()
        {
            this.Position = Position;
            for (int r = 0; r < 4; r++)
            {
                for (int c = 0; c < 2; c++)
                {
                    GameEffect E = new GameEffect();
                    E.Sprite = new Sprite(Game1.ParticlePlayerSheet, r);
                    E.Sprite.CurrentFrame = c;
                    E.Sprite.FrameRate = 0;
                    E.Position = Position + new Vector3(-10 + 10 * c, -20 + 10 * r, 0);
                    Effects.Add(E);
                }
            }
        }
    }
}
